package com.ruiyi.adrobot.beans;

import java.util.List;

/**
 * 后台接收配置任务信息
 */
public class TaskConfig {
    private Integer deviceType; // 0 所有设备 1虚拟设备 2真实设备
    private List<String> groupNames; // 组名
    private Integer fun; //
    private Integer didType; // 1省 2市
    private List<Flow> flows; // 各个流程的参数
    private Integer cycleNumber; // 循环天数
    private String startTime; // 任务开始时间
    private String endTime; // 任务结束时间

    public Integer getDidType() {
        return didType;
    }

    public void setDidType(Integer didType) {
        this.didType = didType;
    }

    public Integer getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(Integer deviceType) {
        this.deviceType = deviceType;
    }

    public Integer getCycleNumber() {
        return cycleNumber;
    }

    public void setCycleNumber(Integer cycleNumber) {
        this.cycleNumber = cycleNumber;
    }

    public static class Flow extends Fun.Flow {
        private String id; // 流程id
        private Integer time; // 次数
        private String startDate; // 限制流程3账号来源
        private String endDate; // 限制流程3账号来源

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public Integer getTime() {
            return time;
        }

        public void setTime(Integer time) {
            this.time = time;
        }

        public String getStartDate() {
            return startDate;
        }

        public void setStartDate(String startDate) {
            if (null != startDate) {
                this.startDate = startDate + " 00:00:00";
            }
        }

        public String getEndDate() {
            return endDate;
        }

        public void setEndDate(String endDate) {
            if (null != endDate) {
                this.endDate = endDate + " 23:59:59";
            }
        }
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }


    public List<String> getGroupNames() {
        return groupNames;
    }

    public void setGroupNames(List<String> groupNames) {
        this.groupNames = groupNames;
    }

    public Integer getFun() {
        return fun;
    }

    public void setFun(Integer fun) {
        this.fun = fun;
    }

    public List<Flow> getFlows() {
        return flows;
    }

    public void setFlows(List<Flow> flows) {
        this.flows = flows;
    }
}
